home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / gfx / x11 / Xincludes_930531.lha / os-include_x11.lha / os-include / X11 / Xaw / Repeater.h < prev    next >
C/C++ Source or Header  |  1992-11-02  |  3KB  |  74 lines

  1. /*
  2.  * $XConsortium: Repeater.h,v 1.3 90/03/02 15:46:57 jim Exp $
  3.  *
  4.  * Copyright 1989 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  *
  23.  * Author:  Jim Fulton, MIT X Consortium
  24.  */
  25.  
  26. #ifndef _XawRepeater_h
  27. #define _XawRepeater_h
  28.  
  29. #include <X11/Xaw/Command.h>
  30.  
  31. /*****************************************************************************
  32.  * 
  33.  * Repeater Widget (subclass of Command)
  34.  * 
  35.  * This widget is a push button that repeatedly fires when held down.
  36.  * 
  37.  * Parameters:
  38.  * 
  39.  *  Name        Class        Type        Default
  40.  *  ----        -----        ----        -------
  41.  * 
  42.  *  decay        Decay        int        5 milliseconds
  43.  *  flash        Boolean        Boolean        FALSE
  44.  *  initialDelay    Delay        int        200 milliseconds
  45.  *  minimumDelay    MinimumDelay    int        10 milliseconds
  46.  *  repeatDelay        Delay        int        50 milliseconds
  47.  *  startCallback    StartCallback    XtCallbackList    NULL
  48.  *  stopCallback    StopCallback    XtCallbackList    NULL
  49.  * 
  50.  *****************************************************************************/
  51.  
  52.                     /* new instance and class names */
  53. #define XtNdecay "decay"
  54. #define XtCDecay "Decay"
  55. #define XtNinitialDelay "initialDelay"
  56. #define XtCDelay "Delay"
  57. #define XtNminimumDelay "minimumDelay"
  58. #define XtCMinimumDelay "MinimumDelay"
  59. #define XtNrepeatDelay "repeatDelay"
  60. #define XtNflash "flash"
  61. #define XtNstartCallback "startCallback"
  62. #define XtCStartCallback "StartCallback"
  63. #define XtNstopCallback "stopCallback"
  64. #define XtCStopCallback "StopCallback"
  65.  
  66.  
  67.                     /* external declarations */
  68. extern WidgetClass repeaterWidgetClass;
  69.  
  70. typedef struct _RepeaterClassRec *RepeaterWidgetClass;
  71. typedef struct _RepeaterRec      *RepeaterWidget;
  72.  
  73. #endif /* _XawRepeater_h */
  74.